/**
 * @(#)com.framework.web.common.mappings.SysUrlMappings
 *
 * Copyright (c) 2014-2018 上海天跃科技有限公司
 *
 * DESC:
 *
 */
package com.framework.web.common.mappings;

/**
 * @author fusf
 * @version 1.0  2016/1/8
 */
public interface SysUrlMappings {

    //统一的页面跳转地址
    public static final String SYS_COMMON_INDEX = "/pageJump";
    /**
     * 登陆
     */
    /******************************* url_action ********************************/
    public static final String LOGIN = "/login_post";
    public static final String LOGOUT = "/logout";
    public static final String INDEX_PWD = "/index/pwd";
    public static final String SYS_MENU="/sys/menu";
    /******************************* view_jsppage ********************************/
    public static final String V_LOGIN = "/login";
    public static final String V_INDEX = "/layout/main";
    //public static final String V_INDEX = "/demo/dwr";


    /**
     * 基础数据模块
     */
    // ================================url========================================
    public static final String SYS_CODE_CATEGORY_LIST = "/sys/codeCategory/list";
    public static final String SYS_CODE_CATEGORY_TOSAVEANDUPDATE = "/sys/codeCategory/toSaveAndUpdate/{id}";
    public static final String SYS_CODE_CATEGORY_SAVEANDUPDATE = "/sys/codeCategory/saveAndUpdate";
    public static final String SYS_CODE_CATEGORY_DELETE = "/sys/codeCategory/delete";

    public static final String SYS_CODE_ITEMS_LIST = "/sys/codeItems/list";
    public static final String SYS_CODE_ITEMS_TOSAVEANDUPDATE = "/sys/codeItems/toSaveAndUpdate/{codeCategoryId}/{id}";
    public static final String SYS_CODE_ITEMS_SAVEANDUPDATE = "/sys/codeItems/saveAndUpdate";
    public static final String SYS_CODE_ITEMS_DELETE = "/sys/codeItems/delete";
    public static final String SYS_CODE_ITEMS_LIST_BYCATEGORYCODE = "/sys/codeItems/byCategoryCode";
    public static final String SYS_CODE_ITEMS_BYCATEGORYCODEANDCODE= "/sys/codeItems/byCategoryCodeAndCode";
    public static final String SYS_CODE_ITEMS_REFRESHCACHE= "/sys/codeItems/refreshCache";

    /******************************* view_jsppage ********************************/
    public static final String V_SYS_CODE_CATEGORY_SAVE_UPDATE = "/sys/basicData/codeCategoryForm";
    public static final String V_SYS_CODE_ITEMS_SAVE_UPDATE = "/sys/basicData/codeItemsForm";
    /**
     * 资源基本信息
     */
    /******************************* url_action ********************************/
    public static final String SYS_RESOURCE_TOSAVEANDUPDATE = "/sys/resource/toSaveAndUpdate/{parentId}/{id}";
    public static final String SYS_RESOURCE_SAVEANDUPDATE = "/sys/resource/saveAndUpdate";
    public static final String SYS_RESOURCE_LIST = "/sys/resource/list";
    public static final String SYS_RESOURCE_DELETE = "/sys/resource/delete";
    public static final String SYS_RESOURCE_COMMONTREE = "/sys/resource/commonTree";
    public static final String SYS_RESOURCE_COMMONTREE_BYROLEID = "/sys/resource/commonTreeByRoleId";
    public static final String SYS_ROLE_RESOURCE_SAVEANDUPDATE = "/sys/role/resource/saveAndUpdate";
    public static final String SYS_RESOURCE_FAST_TOSAVE = "/sys/resource/toFastSave/{parentId}/{id}";
    public static final String SYS_RESOURCE_FAST_SAVE = "/sys/resource/saveFast";


    /******************************* view_jsppage ********************************/
    public static final String V_SYS_RESOURCE_TOSAVEANDUPDATE = "/sys/resource/resourceForm";
    public static final String V_SYS_RESOURCE_FAST_TOSAVEA = "/sys/resource/resourceFastForm";


    /**
     * 角色模块
     */
    // ================================url========================================
    public static final String SYS_ROLE_LIST = "/sys/role/list";
    public static final String SYS_ROLE_TOSAVEANDUPDATE = "/sys/role/toSaveAndUpdate/{id}";
    public static final String SYS_ROLE_SAVEANDUPDATE = "/sys/role/saveAndUpdate";
    public static final String SYS_ROLE_DELETE = "/sys/role/delete";
    public static final String SYS_ROLE_TOALLOCATERES = "/sys/role/toAllocateRes/{id}";


    // ====================================view===========================================
    public static final String V_SYS_ROLE_TOSAVEUPDATE = "/sys/role/roleForm";
    public static final String V_SYS_ROLE_TOALLOCATERES = "/sys/role/allocateResForm";

    /**
     * 组织机构路径映射
     */
    // ================================url========================================
    public static final String SYS_ORGANIZATION_LIST = "/sys/organization/list";
    public static final String SYS_ORGANIZATION_TOSAVEANDUPDATE = "/sys/organization/toSaveAndUpdate/{parentId}/{id}";
    public static final String SYS_ORGANIZATION_SAVEANDUPDATE = "/sys/organization/saveAndUpdate";

    public static final String SYS_ORGANIZATION_DELETE = "/sys/organization/delete";
    public static final String SYS_ORGANIZATION_RECOVERY = "/sys/organization/recovery";
    public static final String SYS_ORGANIZATION_COMMONTREEMORE = "/sys/organization/commonTreeMore";
    public static final String SYS_ORGANIZATION_GETORGNAMEBYID = "/sys/organization/getOrgNameById";
    public static final String SYS_ORGANIZATION_IMPORT_EXCEL = "/sys/organization/importExcel";

    // ====================================view===================================================
    public static final String V_SYS_ORGANIZATION_TOSAVEUPDATE = "/sys/organization/orgForm";


    /**
     * 用户信息路径映射
     */
    // ================================url========================================
    public static final String SYS_USER_LIST = "/sys/user/list";
    public static final String SYS_USER_TOSAVEANDUPDATE = "/sys/user/toSaveAndUpdate/{orgId}/{id}";
    public static final String SYS_USER_SAVEANDUPDATE = "/sys/user/saveAndUpdate";
    public static final String SYS_USER_DELETE = "/sys/user/delete";
    public static final String SYS_USER_TOALLOCATEROLE = "/sys/user/toAllocateRole/{id}";
    public static final String SYS_USER_ROLE_SAVEANDUPDATE = "/sys/user/role/saveAndUpdate";
    public static final String SYS_USERINFO_UPDATE_PWD = "/sys/user/updatePwd";


    // ====================================view===================================================
    public static final String V_SYS_USER_TOSAVEUPDATE = "sys/user/userForm";
    public static final String V_SYS_USER_TOALLOCATEROLE = "/sys/user/userRoleForm";

    /**
     * 日志信息路径映射
     */
    // ================================url========================================
    public static final String SYS_LOG_LIST = "/sys/log/list";
    public static final String SYS_LOG_TOSAVEANDUPDATE = "/sys/log/toSaveAndUpdate/{id}";


    // ====================================view===================================================
    public static final String V_SYS_LOG_TOSAVEUPDATE = "sys/log/logForm";



}
